let str = "abcdefg";
console.log(str.codePointAt(0), str.codePointAt(3)); // 97 100
str = '\uD800\uDC00';
console.log(str.codePointAt(0)); // 65536
console.log(str.codePointAt(-1)); // undefined

